package cc.aiee.demo.springboot.basic.properties;

import javax.validation.constraints.NotBlank;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.Data;
import lombok.ToString;

@Data
//@EqualsAndHashCode(callSuper = false)
@Component
@ToString
public class WxPayProperties {
	
	@NotBlank
	@Value("${pay.wx.app.id}")
	private String appId;

	@NotBlank
	@Value("${pay.wx.mch.id}")
	private String mchId;

	@NotBlank
	@Value("${pay.wx.api.secret}")
	private String apiSecret;

	@NotBlank
	@Value("${pay.wx.cert.path}")
	private String  certPath;
	
	@NotBlank
	@Value("${pay.wx.cert.pwd}")
	private String  certPwd;
	
	@NotBlank
	@Value("${pay.wx.notify.url}")
	private String notifyUrl;
	
	@Value("${pay.wx.notify.refund}")
	private String notifyUrlRefund ;
}
